package com.bingxue.edu.management.shop.model.req;

import com.bingxue.edu.common.enums.ReceiveTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 创建或修改优惠卷绑定信息
 *
 * @author zq
 * @since 2024/08/19 00:02
 */
@Data
@Schema(description = "创建或修改优惠卷绑定信息")
public class CouponDistributeReq {

    @Schema(description = "优惠券模板id")
    @NotBlank(message = "优惠券模板id不能为空")
    @Length(max = 32, message = "优惠券模板id长度不能超过 {max} 个字符")
    private String couponTemplateId;

    @NotBlank(message = "家长Id不能为空")
    @Length(max = 32, message = "家长Id长度不能超过 {max} 个字符")
    @Schema(description = "家长Id")
    private String parentId;

    @Schema(description = "领取方式")
    private ReceiveTypeEnum receiveType;
}
